package user_dao

import (
	"context"
	"gorm.io/gorm"
	"guafo/internel/repository/dao"
)

// @Description
// @Author 代码小学生王木木

func NewIUserDAO(db *gorm.DB) IUserDAO {
	return &gormUserDAO{
		db: db,
	}
}

type gormUserDAO struct {
	db *gorm.DB
}

func (g *gormUserDAO) FindByID(ctx context.Context, id int64) (dao.UserMode, error) {
	//TODO implement me
	panic("implement me")
}

func (g *gormUserDAO) FindByUserName(ctx context.Context, username string) (dao.UserMode, error) {
	//TODO implement me
	panic("implement me")
}

func (g *gormUserDAO) Insert(ctx context.Context, mode dao.UserMode) error {
	return nil
}
